package org.cobo.vmmanagement.domain;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(finders = { "findChargesByProject", "findChargesByResource" })
public class Charge {

    /**
     */
    @ManyToOne
    private Resource Resource;

    /**
     */
    @ManyToOne
    private Project Project;

    /**
     */
    private Integer AmountOfHours;

    /**
     */
    private String Description;

    /**
     */
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date StartingMonday;
}
